/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.naga.bulksender.data;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Prueba
 */
public class SMSBulkContextImpl implements SMSBulkContext{

    private Map<Integer, BulkMessage> mapMsgScheduled = new HashMap<Integer, BulkMessage>();

    public void addMessage(BulkMessage msg) {
        mapMsgScheduled.put(msg.getBulkSmsId(), msg);
    }

    public BulkMessage getMessage(Integer msgId) {
        return mapMsgScheduled.get(msgId);
    }
    public void removeMessage(Integer msgId){
        mapMsgScheduled.remove(msgId);
    }
}
